package com.bwie.remote;

import com.bwie.common.domain.User;
import com.bwie.common.result.Result;
import com.bwie.remote.fall.UserRemoteFall;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @className: UserRemote
 * @Description: TODO
 * @version: v1.８.0
 * @author: 刘茂锴
 * @date: 2025/10/13 10:30
 */
@FeignClient(value = "bwie-system",fallbackFactory = UserRemoteFall.class)
public interface UserRemote {
    //根据手机号查询用户信息
    @GetMapping("/user/selectPhoneByUser/{phone}")
    public Result<User> selectPhoneByUser(@PathVariable("phone")String phone);
}
